<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>表单新增元素属性</title>
</head>
<body>
    专业
    <select name="" id="">
        <option value="1">1</option>
        <option value="2">2</option>
        <option value="3">3</option>
    </select>
    <br>

    <!-- 看着很强大，但是在一些浏览器不适用 -->
    <!-- value: 具体值，label: 辅助提示信息 -->
    可输入选择专业: <input type="text" list="myDataList">
    <datalist id="myDataList">
        <option value="1" label="学前端">1</option>
        <option value="2" label="用得多">2</option>
        <option value="3" label="前景好">3</option>
    </datalist>
</body>
</html>
